﻿namespace WPForms.Phone.ViewModel
{
    using System;
    using System.Net;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Documents;
    using System.Windows.Ink;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Animation;
    using System.Windows.Shapes;
    using Microsoft.Practices.Prism.ViewModel;

    /// <summary>
    /// Base type for form element view models
    /// </summary>
    /// <typeparam name="T">The type of the model</typeparam>
    public abstract class ElementViewModelBase<T> : NotificationObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ElementViewModelBase{T}" /> class.
        /// </summary>
        /// <param name="model">The model.</param>
        public ElementViewModelBase(T model)
        {
            this.Model = model;
        }

        /// <summary>
        /// Gets or sets the model.
        /// </summary>
        public T Model { get; set; }
    }
}
